package java07;

import java.util.Scanner;

class MyThread extends Thread{
	private static int count;
	public MyThread(int n) {
		this.count = n;
	}
	public void run(){
		for (int i = 0; i < count; i++) {
			System.out.println(i);
		}
		System.out.println(Thread.currentThread().getName()+" "+isAlive());
	}	
}
public class Java71 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Thread t1 = new MyThread(Integer.parseInt(sc.next()));
        t1.start();
    }
}